package com.bdqn.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bdqn.model.CardType;
import com.bdqn.service.CardTypeService;

@Controller
@RequestMapping("/cardType")
public class CardTypeController {

	@Autowired
	private CardTypeService cardTypeService;
	
	@RequestMapping("/type")
	@ResponseBody
	public List<CardType> listAll(){
		
		String state="启用";
		
		List<CardType> dt= new ArrayList<>();
		
		dt = cardTypeService.listAll(state);
		return dt;
	}
}
